Fix bug #11279 with sending command blocks to GDB.
authorEli Zaretskii <eliz@gnu.org>
Fri, 20 Apr 2012 10:09:40 +0000 (13:09 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 20 Apr 2012 10:09:40 +0000 (13:09 +0300)
commit7b3e19062ef019dd7ace444536eae5caa8bc9449
tree81a8978aee4f4964aa03b9212ba2b8c8c82a3659
parent4f145f71f8f8a10b19a8fc42bd10b48a99b179da
Fix bug #11279 with sending command blocks to GDB.

 lisp/progmodes/gdb-mi.el (gdb-control-level): New variable.
 (gdb): Make it buffer-local and init to zero.
 (gdb-control-commands-regexp): New variable.
 (gdb-send): Don't wrap in "-interpreter-exec console" if
 gdb-control-level is positive.  Increment gdb-control-level
 whenever the command matches gdb-control-commands-regexp, and
 decrement it each time the command is "end".  (Bug#11279)
lisp/ChangeLog
lisp/progmodes/gdb-mi.el